home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Development Platforms / Apple II / Essentials / MPW IIGS Interfaces / AIIGSIncludes / E16.ProDOS < prev    next >
Encoding:
Text File  |  1990-04-03  |  4.9 KB  |  155 lines  |  [TEXT/MPS ]

  1. ; File:  E16.ProDOS
  2. ;
  3. ;
  4. ; Copyright Apple Computer, Inc. 1986-90
  5. ; All Rights Reserved
  6. ;
  7. ;
  8. invalidCallNum EQU $0001  ; invalid call number
  9. unclaimedIntErr EQU $01  ; fatal error - unclaimed interrupt
  10. badPBlockPtr EQU $05  ; call pointer out of bounds
  11. pdosActiveErr EQU $06  ; ProDOS is active
  12. pdosBusyErr EQU $07  ; ProDOS is busy
  13. vcbUnusable EQU $0A  ; fatal error - VCB unusable
  14. fcbUnusable EQU $0B  ; fatal error - FCB unusable
  15. badBlockZero EQU $0C  ; fatal error - block zero allocated illegally
  16. shdwInterruptErr EQU $0D  ; fatal error - interrupt occured while I/O shadowing off
  17.     IF &FINDSYM(&SYSGLOBAL,'DEVNOTFOUND')=0 AND &FINDSYM(&SYSGLOBAL,'devnotfound')=0 THEN  ; device not found
  18. devNotFound EQU $10
  19.     ENDIF
  20. badDevRefNum EQU $11  ; invalid device reference number
  21. osVersionErr EQU $11  ; Wrong OS version
  22. badReqCode EQU $20  ; invalid request code
  23. intTableFull EQU $25  ; interrupt table full
  24. invalidOperation EQU $26  ; invalid operation
  25. ioError EQU $27  ; I/O error
  26. noDevConnect EQU $28  ; no device connected
  27. writeProtectErr EQU $2B  ; write protect error
  28. diskSwitchErr EQU $2E  ; disk switched error
  29. badPathname EQU $40  ; invalid pathname syntax
  30. fcbFullErr EQU $42  ; FCB full error
  31. badFileRefNum EQU $43  ; invalid file reference number
  32.     IF &FINDSYM(&SYSGLOBAL,'PATHNOTFOUND')=0 AND &FINDSYM(&SYSGLOBAL,'pathnotfound')=0 THEN  ; path not found
  33. pathNotFound EQU $44
  34.     ENDIF
  35. volumeNotFound EQU $45  ; volume not found
  36.     IF &FINDSYM(&SYSGLOBAL,'FILENOTFOUND')=0 AND &FINDSYM(&SYSGLOBAL,'filenotfound')=0 THEN  ; file not found
  37. fileNotFound EQU $46
  38.     ENDIF
  39. dupFileName EQU $47  ; duplicate file name
  40. volumeFullErr EQU $48  ; volume full error
  41. dirFullErr EQU $49  ; directory full error
  42. versionErr EQU $4A  ; version error (incompatible file format)
  43.     IF &FINDSYM(&SYSGLOBAL,'BADSTORETYPE')=0 AND &FINDSYM(&SYSGLOBAL,'badstoretype')=0 THEN  ; unsupported (or incorrect) storage type
  44. badStoreType EQU $4B
  45.     ENDIF
  46.     IF &FINDSYM(&SYSGLOBAL,'EOFENCOUNTERED')=0 AND &FINDSYM(&SYSGLOBAL,'eofencountered')=0 THEN  ; end-of-file encountered
  47. eofEncountered EQU $4C
  48.     ENDIF
  49. positionRangeErr EQU $4D  ; position out of range
  50. accessErr EQU $4E  ; access not allowed
  51. fileOpenErr EQU $50  ; file is open
  52. dirDamaged EQU $51  ; directory structure is damaged
  53. badVolType EQU $52  ; unsupported volume type
  54.     IF &FINDSYM(&SYSGLOBAL,'PARAMRANGEERR')=0 AND &FINDSYM(&SYSGLOBAL,'paramrangeerr')=0 THEN  ; parameter out of range
  55. paramRangeErr EQU $53
  56.     ENDIF
  57. memoryFullErr EQU $54  ; out of memory
  58. vcbFullErr EQU $55  ; VCB full error
  59. dupVolumeErr EQU $57  ; duplicate volume error
  60. notBlkDevErr EQU $58  ; not a blocked device
  61.     IF &FINDSYM(&SYSGLOBAL,'INVALIDLEVEL')=0 AND &FINDSYM(&SYSGLOBAL,'invalidlevel')=0 THEN  ; invalid level
  62. invalidLevel EQU $59
  63.     ENDIF
  64. blkNumRangeErr EQU $5A  ; block number out of range
  65. notSameVolErr EQU $5B  ; different volumes found on ChangePath call
  66. notExecSysFile EQU $5C  ; not an executable system file
  67. osUnavailable EQU $5D  ; Operating System/file system not available
  68. deallocateRamErr EQU $5E  ; Cannot deallocate /RAM
  69.     IF &FINDSYM(&SYSGLOBAL,'STACKOVERFLOW')=0 AND &FINDSYM(&SYSGLOBAL,'stackoverflow')=0 THEN  ; Return stack overflow
  70. stackOverflow EQU $5F
  71.     ENDIF
  72. dataUnavailable EQU $60  ; Data unavailable
  73. endofDirectory EQU $0061
  74. P_READ_ENABLE EQU $01
  75. P_WRITE_ENABLE EQU $02
  76. P_DESTROY_ENABLE EQU $80
  77. P_RENAME_ENABLE EQU $40
  78. ; offset constants for BlockRec
  79. oblockDevNum EQU 0
  80. oblockDataBuffer EQU 2
  81. oblockNum EQU 6
  82. ; offset constants for DevNumRec
  83. odevName EQU 0
  84. odevNum EQU 4
  85. ; offset constants for DInfoRec
  86. odidevNum EQU 0
  87. odidevName EQU 2
  88. ; offset constants for DirEntryRec
  89. oderefNum EQU 0
  90. odeflags EQU 2
  91. odebase EQU 4
  92. odedisplacement EQU 6
  93. odenameBuffer EQU 8
  94. odeentryNum EQU 12
  95. odefileType EQU 14
  96. odeendOfFile EQU 16
  97. odeblockCount EQU 20
  98. odecreateTime EQU 24
  99. odemodTime EQU 32
  100. odeaccess EQU 40
  101. odeauxType EQU 42
  102. odefileSysID EQU 46
  103. ; offset constants for EOFRec
  104. oeofRefNum EQU 0
  105. oeofPosition EQU 2
  106. ; offset constants for FileIORec
  107. ofileRefNum EQU 0
  108. odataBuffer EQU 2
  109. orequestCount EQU 6
  110. otransferCount EQU 10
  111. ; offset constants for FileRec
  112. ofrpathname EQU 0
  113. ofrfAccess EQU 4
  114. ofrfileType EQU 6
  115. ofrauxType EQU 8
  116. ofrstorageType EQU 12
  117. ofrcreateDate EQU 14
  118. ofrcreateTime EQU 16
  119. ofrmodDate EQU 18
  120. ofrmodTime EQU 20
  121. ofrblocksUsed EQU 22
  122. ; offset constants for EraseDiskRec
  123. ;odevName EQU 0
  124. ovolName EQU 4
  125. ofileSysID EQU 8
  126. ; offset constants for InterruptRec
  127. ointNum EQU 0
  128. ointCode EQU 2
  129. ; offset constants for MarkRec
  130. omarkRefNum EQU 0
  131. oposition EQU 2
  132. ; offset constants for NewLineRec
  133. onewLRefNum EQU 0
  134. oenableMask EQU 2
  135. onewlineChar EQU 4
  136. ; offset constants for OpenRec
  137. oopenRefNum EQU 0
  138. oopenPathname EQU 2
  139. oioBuffer EQU 6
  140. ; offset constants for PathNameRec
  141. ;opathname EQU 0
  142. onewPathname EQU 4
  143. ; offset constants for PrefixRec
  144. oprefixNum EQU 0
  145. oprefix EQU 2
  146. ; offset constants for QuitRec
  147. oqrquitPathname EQU 0
  148. oqrflags EQU 4
  149. ; offset constants for VolumeRec
  150. ovrdeviceName EQU 0
  151. ovrvolName EQU 4
  152. ovrtotalBlocks EQU 8
  153. ovrfreeBlocks EQU 12
  154. ovrfileSysID EQU 16
  155.